import request from '@/utils/request'

// 查询参数列表
export function listClassify(query) {
  return request({
    url: '/produce/classify/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getClassify(classifyId) {
  return request({
    url: '/produce/classify/' + classifyId,
    method: 'get'
  })
}


// 获取分类下拉框
export function getFirstClassify() {
  return request({
    url: '/produce/classify/getFirstClassify',
    method: 'get'
  })
}

// 获取分类下拉框
export function getTypeTree() {
  return request({
    url: '/produce/type/typeWithProperty',
    method: 'get'
  })
}

// 新增参数配置
export function addClassify(data) {
  return request({
    url: '/produce/classify',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateClassify(data) {
  return request({
    url: '/produce/classify',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delClassify(classifyId) {
  return request({
    url: '/produce/classify/' + classifyId,
    method: 'delete'
  })
}

// 删除参数配置
export function changeReveal(classifyId) {
  return request({
    url: '/produce/classify/changeReveal/' + classifyId,
    method: 'put'
  })
}

// 删除参数配置
export function changeNavigation(classifyId) {
  return request({
    url: '/produce/classify/changeNavigation/' + classifyId,
    method: 'put'
  })
}


